#define NPROC 9 //number of PROCs
#define SSIZE 1024 // stack size=1024

//PROC status
#define FREE 0
#define READY 1
#define SLEEP 2
#define ZOMBIE 3

//proc is expandable
typedef struct proc{
    struct proc *next;
    int *ksp;  //save stack pointer
    int pid;
    int ppid;
    int status;
    int priority;
    int kstack[SSIZE]; //process stack
}PROC;
